@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/role/form.js"]}){
<form id="projectForm" lay-filter="projectForm" class="layui-form model-form">
    <input name="id" type="hidden" value="${role.id}"/>
    <input name="projectId" type="hidden" value="${role.projectId}"/>

    <div class="layui-form-item">
        <label class="layui-form-label">角色名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="roleName" placeholder="请输入角色名称" type="text" class="layui-input" maxlength="32" lay-verify="required"
                   value="${role.roleName}"
                   required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="checkbox"  ${role.status==1?'checked':''} name="status" lay-skin="switch" lay-filter="status"  lay-text="启用|禁用">
        </div>
    </div>

   <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">角色说明</label>
    <div class="layui-input-block">
      <textarea name="memo" placeholder="请输入内容" class="layui-textarea">${role.memo}</textarea>
    </div>
  </div>

    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
